package cn.gok.homework;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Person person = new Person("张三","男",22,false){
            @Override
            public void study(String school) {
                Scanner sc = new Scanner(System.in);
                System.out.println("请输入学习时间");
                String time = sc.next();
                System.out.println(this.getName()+"在"+school+"学校学习了"+time+"年");
            }
        };
        person.study("泉州职业技术大学");

    }
}